// 经营概况，林肖烨
<template>
  <div class="container">
    <Headerl />
    <Echarts />
    <Tabls :Managementarr="Managementarr" :total="total" :pageSize="pageSize" />
  </div>
</template>

<script>
import Echarts from "./components/Echarts.vue";
import Tabls from "./components/tables.vue";
import Headerl from "./components/Headerl.vue";
import { getHome } from "../../api/management";
export default {
  components: {
    Echarts,
    Headerl,
    Tabls,
  },
  data() {
    return {
      Managementarr: [],
      page: 1,
      pageSize: 10,
      total: 0,
    };
  },
  mounted() {
    this.getDate(); //首屏函数
  },
  methods: {
    getDate() {
      const params = {
        page: this.page, //页码
        pageSize: this.pageSize, //每页多少条
      };
      getHome(params).then((res) => {
        if (res.code == 200) {
          this.Managementarr = res.data;
          this.total = res.total;
        }
      });
    },
  },
};
</script>

<style lang='less' scope>
</style>
